﻿<%@ Page Language="C#" MasterPageFile="~/hgmanage/Main.Master" AutoEventWireup="true" CodeBehind="knowledgelist_E.aspx.cs" Inherits="huaguwang.hgmanage.knowledge.knowledgelist_E" Title="无标题页" %>

<%@ Register Assembly="HGDownListTree" Namespace="huaguwang" TagPrefix="hgdownlist" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="HGWebControls" Namespace="huaguwang.WebControls" TagPrefix="cc1" %>
<%@ Import Namespace="huaguwang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function() {
            $(".info_done_box").find("select:first").change(function() {
                $("#lbClass").html("");
                var textbox = $("info_class_box").children("input");
                var value = $(this).find("option:selected").text();
                if (value.indexOf("(") > 0 && value.indexOf(")") > 0) {
                    $("#lbClass").html("不能为根类别添加内容信息");
                    $(this).val("");
                }
                textbox.val(textbox.attr("title"));
            });
      });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="server">
    <cc1:WebUserToolBar ID="WebUserToolBar1" runat="server" 
        onbutton0="WebUserToolBar1_Button0" onbutton1="WebUserToolBar1_Button1"  
        ButtonCSS="btn_done" CssClass="toolbar" >
    </cc1:WebUserToolBar>        
    <div class="info_done_box">
        <ul>
           <li style="height: 35px;"><em>知识点类别</em>
                <hgdownlist:HGDownListTree ID="HGdropCate" runat="server" Width="300px">
                </hgdownlist:HGDownListTree>
                 <span class="mustlits">*</span> <span id="lbClass" class="mustlits"></span>
                <asp:RequiredFieldValidator ID="valrCate" runat="server" ErrorMessage="请先选择类别;" ControlToValidate="HGdropCate"></asp:RequiredFieldValidator>                 
            </li> 
            <li><em>知识点名称</em>
                <asp:TextBox ID="txtTitle" runat="server" Width="300px"></asp:TextBox>
                <span style="color: Red">*</span>   
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTitle"
                    ErrorMessage="请填写知识点名称"></asp:RequiredFieldValidator>
            </li>
            <li style="height: 35px;"><em>信息来源</em>
                <asp:TextBox ID="txtSource" runat="server" Width="300px"></asp:TextBox>  
                <span style="color: Red">*</span>   
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ErrorMessage="请填写信息来源;" ControlToValidate="txtSource" Display="Dynamic"></asp:RequiredFieldValidator>               
            </li>
            <li><em>置顶</em>
                    <asp:RadioButtonList ID="rdoListTopis" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Text="置顶" Value="1" ></asp:ListItem>
                        <asp:ListItem Text="不置顶" Value="0" Selected="True"></asp:ListItem>
                    </asp:RadioButtonList>
                </li>
                <li><em>推荐</em>
                    <asp:RadioButtonList ID="rblRem" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Text="推荐" Value="1" ></asp:ListItem>
                        <asp:ListItem Text="不推荐" Value="0" Selected="True"></asp:ListItem>
                    </asp:RadioButtonList>
                </li>
            <li style="height: 35px;"><em>网页标题</em>
                <asp:TextBox ID="txtSEOtitle" runat="server" Width="400px"></asp:TextBox>         
            </li>
            <li style="height: 35px;"><em>网页关键字</em>
                <asp:TextBox ID="txtSEOkey" runat="server" Width="400px"></asp:TextBox>            
            </li>
            <li style="height: 35px;"><em>网页描述</em>
                <asp:TextBox ID="txtSEOdec" runat="server" Width="400px"></asp:TextBox>                        
            </li>
            <li style="height: 35px; display:none;"><em>内部关键字</em>
                <asp:TextBox ID="txtInKey" runat="server" Width="400px"></asp:TextBox>               
            </li>
                <li style="height: 35px; display:none;"><em>彩色关键字</em>
            <asp:TextBox ID="txtColorKey" runat="server" Width="400px"></asp:TextBox>               
            </li>
            <li style="height: 35px; display:none;"><em>彩色标题</em>
                <asp:TextBox ID="txtColorTitle" runat="server" Width="400px"></asp:TextBox>               
            </li>
            <li style="height: 350px;"><em>知识点详细信息</em> <span style="color: Gray; font-size: 9pt;">
                <FCKeditorV2:FCKeditor ID="txtContent" runat="server" Height="400px" Value="暂无信息"
                BasePath="/hgmanage/Public/fckeditor/" Width="75%" ToolbarStartExpanded="false" >
                </FCKeditorV2:FCKeditor>
            </li>
          </ul>
    </div>
</asp:Content>
